﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace PhotoGallery.Data.Entity
{
    //public enum SharedAlbum {Private, Public, AllUsers}
    public class Album
    {
        public int ID { get; set; }
        public string Title { get; set; }
        public string FolderName { get; set; }
        public string FileName { get; set; }
        public DateTime? CreatedOn { get; set; }
        public DateTime? ModifiedOn { get; set; }
        public DateTime? DeletedOn { get; set; }
        public SharedAlbum Shared { get; set; }

        private int _orderNumber;
        public int OrderNumber { get { return _orderNumber; } }

        private bool _active;
        public bool Active { get { return _active; } }

        public Album()
        {

        }

        public Album(int id, string title, string folderName, string fileName, DateTime? createdOn, DateTime? modifiedOn, DateTime? deletedOn, SharedAlbum shared, int orderNumber, bool active = true)
        {
            ID = id;
            Title = title;
            FolderName = folderName;
            FileName = fileName;
            CreatedOn = createdOn;
            ModifiedOn = modifiedOn;
            DeletedOn = deletedOn;
            Shared = shared;
            _orderNumber = orderNumber;
            _active = active;
        }
    }
}